package com.alks.entity.data.entity;

import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ms
 * @since 2024-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PS_DAY_PERCENT")
@ApiModel(value="PsDayPercent对象", description="")
public class PsDayPercent implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    @JsonIgnore
    @ApiModelProperty(value = "公司ID")
    private String companyId;

    @JsonIgnore
    private String processType;

    @ApiModelProperty(value = "产线")
    private String line;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @ApiModelProperty(value = "日期")
    private LocalDateTime ddate;

    @ApiModelProperty(value = "排量")
    private BigDecimal percent;

    @JsonIgnore
    private String deptNo;


}
